﻿using Model;
using NHibernate;

namespace DataTier
{
    public class TagDao
    {
        private readonly ISessionProvider<ISession> _sessionProvider;

        private ISession Session {
            get { return _sessionProvider.Session; }
        }

        public TagDao(ISessionProvider<ISession>  sessionProvider)
        {
            _sessionProvider = sessionProvider;
        }

        public void Save(ITag tag)
        {
            Session.Save(tag);
        }
    }
}
